﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace PersonalWebsite.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class init9 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_TgaGame",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 736, DateTimeKind.Local).AddTicks(2275),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 127, DateTimeKind.Local).AddTicks(759),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_Show",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 736, DateTimeKind.Local).AddTicks(1016),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 126, DateTimeKind.Local).AddTicks(9494),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_ProExperience",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 734, DateTimeKind.Local).AddTicks(9645),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 125, DateTimeKind.Local).AddTicks(7943),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_HotMovie",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 735, DateTimeKind.Local).AddTicks(9723),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 126, DateTimeKind.Local).AddTicks(8070),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_GameVideo",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 735, DateTimeKind.Local).AddTicks(8472),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 126, DateTimeKind.Local).AddTicks(6757),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_Book",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 735, DateTimeKind.Local).AddTicks(7146),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 126, DateTimeKind.Local).AddTicks(5210),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_Ability",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 734, DateTimeKind.Local).AddTicks(8360),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 125, DateTimeKind.Local).AddTicks(6417),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<string>(
                name: "Title",
                table: "WP_Post",
                type: "varchar(50)",
                maxLength: 50,
                nullable: false,
                comment: "名称",
                oldClrType: typeof(string),
                oldType: "varchar(20)",
                oldMaxLength: 20,
                oldComment: "名称")
                .Annotation("MySql:CharSet", "utf8mb4")
                .OldAnnotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AlterColumn<DateTime>(
                name: "Time",
                table: "WP_Post",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 736, DateTimeKind.Local).AddTicks(3087),
                comment: "发布时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 127, DateTimeKind.Local).AddTicks(1597),
                oldComment: "发布时间");

            migrationBuilder.AlterColumn<string>(
                name: "Tags",
                table: "WP_Post",
                type: "varchar(100)",
                maxLength: 100,
                nullable: false,
                comment: "标签",
                oldClrType: typeof(string),
                oldType: "varchar(20)",
                oldMaxLength: 20,
                oldComment: "标签")
                .Annotation("MySql:CharSet", "utf8mb4")
                .OldAnnotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WP_Post",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 736, DateTimeKind.Local).AddTicks(4191),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 127, DateTimeKind.Local).AddTicks(2759),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<string>(
                name: "Category",
                table: "WP_Post",
                type: "varchar(20)",
                maxLength: 20,
                nullable: false,
                comment: "类型",
                oldClrType: typeof(string),
                oldType: "varchar(10)",
                oldMaxLength: 10,
                oldComment: "类型")
                .Annotation("MySql:CharSet", "utf8mb4")
                .OldAnnotation("MySql:CharSet", "utf8mb4");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_TgaGame",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 127, DateTimeKind.Local).AddTicks(759),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 736, DateTimeKind.Local).AddTicks(2275),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_Show",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 126, DateTimeKind.Local).AddTicks(9494),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 736, DateTimeKind.Local).AddTicks(1016),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_ProExperience",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 125, DateTimeKind.Local).AddTicks(7943),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 734, DateTimeKind.Local).AddTicks(9645),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_HotMovie",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 126, DateTimeKind.Local).AddTicks(8070),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 735, DateTimeKind.Local).AddTicks(9723),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_GameVideo",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 126, DateTimeKind.Local).AddTicks(6757),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 735, DateTimeKind.Local).AddTicks(8472),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_Book",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 126, DateTimeKind.Local).AddTicks(5210),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 735, DateTimeKind.Local).AddTicks(7146),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WS_Ability",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 125, DateTimeKind.Local).AddTicks(6417),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 734, DateTimeKind.Local).AddTicks(8360),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<string>(
                name: "Title",
                table: "WP_Post",
                type: "varchar(20)",
                maxLength: 20,
                nullable: false,
                comment: "名称",
                oldClrType: typeof(string),
                oldType: "varchar(50)",
                oldMaxLength: 50,
                oldComment: "名称")
                .Annotation("MySql:CharSet", "utf8mb4")
                .OldAnnotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AlterColumn<DateTime>(
                name: "Time",
                table: "WP_Post",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 127, DateTimeKind.Local).AddTicks(1597),
                comment: "发布时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 736, DateTimeKind.Local).AddTicks(3087),
                oldComment: "发布时间");

            migrationBuilder.AlterColumn<string>(
                name: "Tags",
                table: "WP_Post",
                type: "varchar(20)",
                maxLength: 20,
                nullable: false,
                comment: "标签",
                oldClrType: typeof(string),
                oldType: "varchar(100)",
                oldMaxLength: 100,
                oldComment: "标签")
                .Annotation("MySql:CharSet", "utf8mb4")
                .OldAnnotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "WP_Post",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 3, 12, 20, 1, 7, 127, DateTimeKind.Local).AddTicks(2759),
                comment: "创建时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 3, 13, 14, 36, 37, 736, DateTimeKind.Local).AddTicks(4191),
                oldComment: "创建时间");

            migrationBuilder.AlterColumn<string>(
                name: "Category",
                table: "WP_Post",
                type: "varchar(10)",
                maxLength: 10,
                nullable: false,
                comment: "类型",
                oldClrType: typeof(string),
                oldType: "varchar(20)",
                oldMaxLength: 20,
                oldComment: "类型")
                .Annotation("MySql:CharSet", "utf8mb4")
                .OldAnnotation("MySql:CharSet", "utf8mb4");
        }
    }
}
